package com.rightsidetech.mall.mapper;

import com.rightsidetech.mall.dto.request.TypePageReq;
import com.rightsidetech.mall.dto.response.TypePageResp;
import com.rightsidetech.mall.entity.MallType;

import java.util.List;

public interface MallTypeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MallType record);

    int insertSelective(MallType record);

    MallType selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MallType record);

    int updateByPrimaryKey(MallType record);

    Long selectCountByTypeName(String typeName);

    Long selectCountByParentId(Long id);

    List<TypePageResp> selectPageList(TypePageReq req);
    Integer selectPageList_COUNT(TypePageReq req);

    List<TypePageResp> selectChildList(Long id);

    List<MallType> selectAll();

    List<TypePageResp> selectAppTypeList(Long agentId);

}